<%--
  Created by IntelliJ IDEA.
  User: koizumisinya
  Date: 2017/12/05
  Time: 11:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String userName = (String) session.getAttribute("username");
    if (userName == null) {
        request.setAttribute("error", "请您先登陆...");
        request.getRequestDispatcher("/jsp/session/login.jsp").forward(request, response);
        return;
    }
%>

<h1>登陆成功</h1>
<h3>用户： <%=session.getAttribute("username") %></h3>
</body>
</html>
